import { Cascader } from 'antd';
import React from 'react';
import Region from '@/utils/Region';

class RegionSelect extends React.Component{
  
  constructor(props) {
    super(props);
    this.state = {
      options: Region
    }
  }

  render () {
    const props = this.props;
    const options = this.state.options;
    return (
      <Cascader
        allowClear
        changeOnSelect
        options={options}
        expandTrigger="hover"
        placeholder='请选择区域'
        {...props} />
    )
  }
}

export default RegionSelect
